Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php include('header.php'); ?>
2
3 <?php include(
'Admin/function.php'); ?>
4
5
6
7     <!--
this is for donor registraton -->
8     <div
class="login" style="background-color:#fff;">
9         <h1
class="text-center" style="background-color:#272327;color: #fff;">Congratulations....!!!</h1>
10                 <p
class="text-center">You have been registered!</p>
11             <div
class="formstyle" style="float: right;padding: 10px;border: 1px solid lightgrey;margin-right: 376px; margin-bottom: 10px;background-color: aliceblue;">
12                 <form action=
"" method="post" class="text-center">
13                     <label>
14                         Email: <input type=
"email" name="email" placeholder="username" required>
15                     </label><br><br>
16                     <label>
17                         Password: <input type=
"password" name="password" placeholder="password" required>
18                     </label><br><br>
19                     <button name=
"submit" type="submit">Login</button> <br> <br>
20
21                     <!-- Not a member?<a href=
"donor_seeker_regi.php" title="create a account" target="" style="color:black;">&nbsp;Sign Up</a> <br> -->
22
23
24                     <!-- login validation -->
25             <?php
26         
27                 
if(isset($_POST["submit"])){
28                             include(
'config.php');
29
30                             $sql=
"SELECT * FROM registration WHERE email= '" . $_POST["email"]."' AND password= '" . $_POST["password"]."'";
31
32                             $result = $conn->query($sql);
33
34                                     
if ($result->num_rows > 0) {
35                                             
// $_SESSION["email"]= $_POST["email"];
36                                             
// $_SESSION['userstatus']= "yes";
37                                             echo
"<script>location.replace('donor/dashboard.php');</script>";
38                                                 
// echo "u are supposed to redirect to ur profile";
39                                         }
else {
40                                             echo
"<span style='color:red;'>Please, check username and password</span>";
41                                         }
42                         $conn->close();
43                     }
44                     
45             ?>
46         <!-- login validation End-->
47
48
49                 </form> <br>&nbsp;&nbsp;&nbsp;
50                 
51                 <br>
52
53                 
54         
55                 
56             
57         
58     </div>
59     
60     
61 </div>
62     
63     
64
65     
66  <?php include(
'footer.php'); ?>
67
68
69     
70     </div><!-- containerFluid Ends -->
71
72
73
74
75     <script src=
"js/bootstrap.min.js"></script>
76
77
78     
79 </body>
80 </html>


Gõ tìm kiếm nhanh...